<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--> <html class="no-js"> <!--<![endif]-->
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <title>消息发送框demo</title>
        <meta name="description" content="">
        <meta name="viewport" content="width=device-width, initial-scale=1">
        
    </head>

    <body>
        <div id="demo"></div>
        <button onclick="send()">demo</button>

    </body>
    <script src="./sendcard.js"></script>
    <script>
        function send(){
            var data ={
                //外观
                style:'white',
                //插入位置
                id:"#demo",
                //默认讨论数
                talk:134,
                //默认喜欢数
                like:234,
            }
            sendcard.init(data,
            //讨论按钮回调
            talk=function (res) {
                console.log(res);
            },
            //喜欢按钮回调
            like=function (res) {
                console.log(res);
            },
            //发送语句回调
            send=function (res) {
                console.log(res);
            })
        }

    </script>
</html>